home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cc03.arc / GET.C next >
Encoding:
C/C++ Source or Header  |  1986-03-15  |  302 b   |  40 lines

  1.  
  2. /* -- get.c  retrieves archival file -- */
  3.  
  4. #include "stdio.h"
  5.  
  6. #define EOF -1
  7.  
  8. main()
  9. {
  10.     int  byte, ecode;
  11.     char *header;
  12.     char hdr_msg[40];
  13.  
  14.     header = hdr_msg;
  15.     ecode = gets(header);
  16.  
  17.     while ( (byte = getchar()) != EOF)
  18.         putchar(byte);
  19.  
  20. }
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.